﻿@model BulkGiftCardModel
@using Nop.Core.Domain.Catalog
@{
    //page title
    ViewBag.Title = T("Admin.GiftCards.BulkAdd").Text;
}
@using (Html.BeginForm())
{
    <div class="section-header">
        <div class="title">
            <img src="@Url.Content("~/subsites/Administration/Content/images/ico-sales.png")" alt="" />
            @T("Admin.GiftCards.BulkAdd") @Html.ActionLink("(" + T("Admin.GiftCards.BackToList") + ")", "List")
        </div>
        <div class="options">
            <input type="submit" name="save" class="t-button" value="@T("Admin.Common.Save")" />
        </div>
    </div>
    
    <table class="adminContent">
        <tr>
            <td class="adminTitle">
                @Html.NopLabelFor(model => model.Count):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.Count)
                @Html.ValidationMessageFor(model => model.Count)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.NopLabelFor(model => model.GiftCard.GiftCardTypeId):
            </td>
            <td class="adminData">
                @Html.DropDownListFor(model => model.GiftCard.GiftCardTypeId, ((GiftCardType)Model.GiftCard.GiftCardTypeId).ToSelectList())
                @Html.ValidationMessageFor(model => model.GiftCard.GiftCardTypeId)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.NopLabelFor(model => model.CouponPrefix):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.CouponPrefix)
                @Html.ValidationMessageFor(model => model.CouponPrefix)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.NopLabelFor(model => model.GiftCard.Amount):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.GiftCard.Amount) [@Model.GiftCard.PrimaryStoreCurrencyCode]
                @Html.ValidationMessageFor(model => model.GiftCard.Amount)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.NopLabelFor(model => model.GiftCard.IsGiftCardActivated):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.GiftCard.IsGiftCardActivated)
                @Html.ValidationMessageFor(model => model.GiftCard.IsGiftCardActivated)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.NopLabelFor(model => model.GiftCard.Message):
            </td>
            <td class="adminData">
                @Html.TextAreaFor(model => model.GiftCard.Message)
                @Html.ValidationMessageFor(model => model.GiftCard.Message)
            </td>
        </tr>
    </table>
}